﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using kTudu.Web.Controllers.Base;
using System.Text;

namespace kTudu.Web.Controllers
{
    public class FriendsController : BaseController
    {
        //
        // GET: /Friends/

        public ActionResult Index()
        {
            var sb = new StringBuilder();

            var friends = CurrentUser.Friendships;

            foreach (var item in friends)
            {
                var amigo = item.Friend;

                if (amigo != null)
                    sb.AppendLine(string.Format("{0} {1} <br>", amigo.Name, amigo.Lastname));
            }

            string compañeros = sb.ToString();

            string a = "";

            
            

            return View();
        }

    }
}
